These declarations are for System 7 and the System 8 cooperative environment, but
should be avoided under System 8. Better alternatives exist for System 8.
}
FUNCTION GetSharedLibrary(libName: Str63; archType: CFragArchitecture; loadFlags: CFragLoadOptions; VAR connID: CFragConnectionID; VAR mainAddr: Ptr; VAR errMessage: Str255): OSErr;
{$IFC NOT GENERATINGCFM}
INLINE $3F3C, $0001, $AA5A;
{$ENDC}
FUNCTION GetDiskFragment({CONST}VAR fileSpec: FSSpec; offset: UInt32; length: UInt32; fragName: Str63; loadFlags: CFragLoadOptions; VAR connID: CFragConnectionID; VAR mainAddr: Ptr; VAR errMessage: Str255): OSErr;
{$IFC NOT GENERATINGCFM}
INLINE $3F3C, $0002, $AA5A;
{$ENDC}
FUNCTION GetMemFragment(memAddr: UNIV Ptr; length: UInt32; fragName: Str63; loadFlags: CFragLoadOptions; VAR connID: CFragConnectionID; VAR mainAddr: Ptr; VAR errMessage: Str255): OSErr;
{$IFC NOT GENERATINGCFM}
INLINE $3F3C, $0003, $AA5A;
{$ENDC}
FUNCTION CloseConnection(VAR connID: CFragConnectionID): OSErr;
{$IFC NOT GENERATINGCFM}
INLINE $3F3C, $0004, $AA5A;
{$ENDC}
FUNCTION FindSymbol(connID: CFragConnectionID; symName: Str255; VAR symAddr: Ptr; VAR symClass: CFragSymbolClass): OSErr;
{$IFC NOT GENERATINGCFM}
INLINE $3F3C, $0005, $AA5A;
{$ENDC}
FUNCTION CountSymbols(connID: CFragConnectionID; VAR symCount: LONGINT): OSErr;
{$IFC NOT GENERATINGCFM}
INLINE $3F3C, $0006, $AA5A;
{$ENDC}
FUNCTION GetIndSymbol(connID: CFragConnectionID; symIndex: LONGINT; VAR symName: Str255; VAR symAddr: Ptr; VAR symClass: CFragSymbolClass): OSErr;
FUNCTION CFragCheckShortCompatibility(clientVersions: UInt32; providerVersions: UInt32): ByteParameter; C;
FUNCTION CFragHasFileLocation(where: ByteParameter): BOOLEAN; C;
FUNCTION CFragHasUnresolvedImports(connID: CFragConnectionID): BOOLEAN; C;
FUNCTION CFragPrepareNamedFragment(fragName: Str63; usage: ByteParameter; archType: CFragArchitecture; preferredVersion: CFragVersionNumber; oldestVersion: CFragVersionNumber; loadFlags: CFragLoadOptions; VAR connID: CFragConnectionID; VAR mainAddr: LogicalAddress; optErrMsg: TextObject): OSStatus; C;
FUNCTION CFragPrepareFromDiskFork(fileSpec: FSObjectRef; forkTag: FSForkType; forkInstance: ItemCount; offset: ByteCount; length: ByteCount; fragName: Str63; loadFlags: CFragLoadOptions; VAR connID: CFragConnectionID; VAR mainAddr: LogicalAddress; optErrMsg: TextObject): OSStatus; C;
FUNCTION CFragPrepareFromMemory(fragAddr: LogicalAddress; length: ByteCount; fragName: Str63; loadFlags: CFragLoadOptions; VAR connID: CFragConnectionID; VAR mainAddr: LogicalAddress; optErrMsg: TextObject): OSStatus; C;
FUNCTION CFragCloseConnection(VAR connID: CFragConnectionID): OSStatus; C;
FUNCTION CFragFindNamedSymbol(connID: CFragConnectionID; symName: Str255; VAR symAddr: LogicalAddress; VAR symClass: CFragSymbolClass): OSStatus; C;
FUNCTION CFragCountSymbols(connID: CFragConnectionID; VAR symCount: ItemCount): OSStatus; C;
FUNCTION CFragGetIndexedSymbol(connID: CFragConnectionID; symIndex: SInt32; VAR symName: Str255; VAR symAddr: LogicalAddress; VAR symClass: CFragSymbolClass): OSStatus; C;
FUNCTION CFragGetFileSpec(connectionID: CFragConnectionID; VAR fileSpec: FSObjectRef): OSStatus; C;
FUNCTION CFragGetFragmentName(connectionID: CFragConnectionID; VAR name: Str63): OSStatus; C;
FUNCTION CFragGetRegisteredFiles(processID: KernelProcessID; requestedCount: ItemCount; VAR totalCount: ItemCount; infoVersion: PBVersion; VAR registeredFiles: CFragRegisteredFileInfo): OSStatus; C;